<%@ page language="java" %>
<%@ page import="com.scalar.chiptrack.commons.Constants,
                 com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<bean:size id="ALSize" name="HoldLineItemList" />
<logic:greaterThan name="ALSize" value="0">
    <table border="0" width="100%" bordercolor="#FFFFFF">
        <tr><td align="left"><font class="NArialL" color="#FFFFFF">HOLD LINE ITEMS</font></td></tr>
        <tr>
            <td>
                <table border="0" width="100%" bordercolor="#FFFFFF">
                    <tr>
                        <td width="4%" align="center" bgcolor="#993333" class="NArialL"><font color="#FFFFFF">Line Item</font></td>
                        <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MFG_PARTNO_PACKINGSLIP ) ) { %>
                        <td width="15%" align="center" bgcolor="#993333" class="NArialL">
                            <font color="#FFFFFF"><bean:message key="label.mfgPartNumber"/></font>
                        </td>
                        <%  } if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MRKT_PARTNO_PACKINGSLIP ) ) { %>
                        <td width="15%" align="center" bgcolor="#993333" class="NArialL">
                            <font color="#FFFFFF"><bean:message key="label.mktgPartNumber"/></font>
                        </td>
                        <% } %>
                        <td width="15%" align="center" bgcolor="#993333" class="NArialL">
                            <font color="#FFFFFF"><bean:message key="label.customerPartNumber"/></font>
                        </td>
                        <% if ( Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase( ConfigManager.getClientNameAirgo() ) )  { %>
                            <td width="15%" align="center" bgcolor="#993333" class="NArialL">
                                <font color="#FFFFFF"><bean:message key="label.labelNumber"/></font>
                            </td>
                        <% } %>
                        <td width="20%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Description</font></font></td>
                        <td width="15%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">UOM</font></font></td>
                        <td width="10%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Req. Dock Date</font></font></td>
                        <td width="10%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Sch. Ship Date</font></font></td>
                        <td width="10%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Requested Quantity</font></font></td>
                        <td width="10%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Quantity To be Shipped</font></font></td>
                        <td width="8%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Status</font></font></td>
                    </tr>

                    <logic:iterate id="holdLineItemList" name="HoldLineItemList" type="com.scalar.chiptrack.operations.packingslip.CustomerShippingLineItems">
                        <bean:define name="holdLineItemList"  id="coolStatus" property="cool_Status"/>
                        <tr bgcolor="#DEE1E2">
                            <td width="4%" align="center">
                                <font class="NArialL"><bean:write name="holdLineItemList" property="lineitemNumber"/></font>
                            </td>
                            <% if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MFG_PARTNO_PACKINGSLIP ) ) { %>
                            <td width="15%" align="center" nowrap>
                                <font class="NArialL">
                                <bean:write name="holdLineItemList" property="part_Number"/>
                                </font>
                            </td>
                            <%  } if (ConfigManager.getBooleanProperty(ConfigManager.SHOW_MRKT_PARTNO_PACKINGSLIP ) ) { %>
                            <td width="15%" align="center" nowrap>
                                <font class="NArialL">
                                <bean:write name="holdLineItemList" property="mkt_Part_Number"/>
                                </font>
                            </td>
                            <% } %>
                            <td width="15%" align="center" nowrap>
                                <font class="NArialL"><bean:write name="holdLineItemList"  property="customer_Part_Number"/></font>
                            </td>
                            <% if ( Constants.CLIENT_NAME_AIRGO.equalsIgnoreCase( ConfigManager.getClientNameAirgo() ) )  { %>
                                <td width="15%" align="center" nowrap>
                                        <font class="NArialL"><bean:write name="holdLineItemList"   property="customer_Label_Number"/></font>
    							</td>
                            <% } %>
                            <td width="240" align="center">
                                <font class="NArialL">
                                <html:textarea name="holdLineItemList"  property="cool_Description" disabled="true" styleClass="disabledtxfield" rows="3" cols="20"/>
                                </font>
                            </td>
                            <td width="15%" align="center" nowrap>
                                <html:text name="holdLineItemList"  property="units" size="8" maxlength="50" disabled="true" styleClass="disabledtxfield" />
                            </td>
                            <td width="10%" align="right" nowrap>
                                <font class="NArialL"><bean:write name="holdLineItemList"  property="cool_Requested_Date"/></font>
                            </td>
                            <td width="10%" align="right" nowrap>
                                <font class="NArialL"><bean:write name="holdLineItemList"  property="cool_Schedule_Date"/></font>
                            </td>
                            <td width="10%" align="right" nowrap>
                                <font class="NArialL"><bean:write name="holdLineItemList"  property="cool_Qty"/></font>
                            </td>
                            <td width="10%" align="right">
                                <font class="NArialL"><bean:write name="holdLineItemList"  property="qtyToShip"/></font>
                            </td>
                            <td width="8%" align="center">
                                <font class="NArialL"><bean:write name="holdLineItemList"  property="cool_Status"/></font>
                            </td>
                        </tr>
                    </logic:iterate>
                </table>
            </td>
        </tr>
    </table>
</logic:greaterThan>
